#{extends '/template/main.html' /}

<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">新增订单</h3>
        <div class="panel-options">
            <a href="#" data-toggle="panel">
                <span class="collapse-icon">&ndash;</span>
                <span class="expand-icon">+</span>
            </a>
        </div>
    </div>
    <div class="panel-body">

        <form method="POST" role="form" action="/BS0017/admin/order/room/create" class="form-horizontal validate">
            <div class="form-group-separator"></div>
            <input type="hidden" name="roomId" id="roomId" value="${id}">
            <div class="form-group">
                <label class="col-sm-2 control-label" for="idName">收款金额</label>

                <div class="col-sm-10">
                    <input type="text" name="amount" class="form-control" id="amount" placeholder="请输入订单金额"
                           data-validate="required" >
                </div>
            </div>

            <div class="form-group-separator"></div>

            <div class="form-group">
                <label class="col-sm-2 control-label" for="remark">备注</label>

                <div class="col-sm-10">
                    <textarea class="form-control" cols="5" id="remark" name="remark" placeholder="请输入备注"></textarea>
                </div>
            </div>


            <div class="form-group-separator"></div>

            <div class="form-group">
                <label class="col-sm-2 control-label" for="field-5"></label>

                <div class="col-sm-10">
                    <button type="submit" class="btn btn-success">&nbsp;&nbsp;保存&nbsp;&nbsp;</button>
                    <button id="idReset" type="reset" class="btn btn-white">&nbsp;&nbsp;重置&nbsp;&nbsp;</button>
                </div>

            </div>

        </form>

    </div>
</div>

<!-- Imported styles on this page -->
<link rel="stylesheet" href="/public/js/wysihtml5/src/bootstrap-wysihtml5.css">
<link rel="stylesheet" href="/public/js/uikit/vendor/codemirror/codemirror.css">
<link rel="stylesheet" href="/public/js/uikit/uikit.css">
<link rel="stylesheet" href="/public/js/uikit/css/addons/uikit.almost-flat.addons.min.css">
<script src="/public/js/wysihtml5/lib/js/wysihtml5-0.3.0.js"></script>
<!-- Imported scripts on this page -->
<script src="/public/js/wysihtml5/src/bootstrap-wysihtml5.js"></script>
<script src="/public/js/uikit/vendor/codemirror/codemirror.js"></script>
<script src="/public/js/uikit/vendor/marked.js"></script>
<script src="/public/js/uikit/js/uikit.min.js"></script>
<script src="/public/js/uikit/js/addons/htmleditor.min.js"></script>
<script src="/public/js/ckeditor/ckeditor.js"></script>
<script src="/public/js/ckeditor/adapters/jquery.js"></script>

<!-- Imported scripts on this page -->
<script src="/public/js/jquery-validate/jquery.validate.min.js"></script>
<script>
    var msg = '${msg}';
    $(function () {
        // 提示
        var msg = '${flash.get("msg")}';
        if(msg) {
            saveSuccess(msg);
        }
    })

    function checkSupplier() {
        layer.open({
            title:"供应商选择",
            type: 2,
            area: ['400px', '500px'],
            fixed: true,
            maxmin: false,
            content: '/warehouse/AdminSupplierCtrl/popAdminSuppliers'
        });
    }


    function callBack(id , name) {
        $('#idAdminSupplierId').val(id);
        $('#idAdminSupplierName').val(name);
        layer.closeAll();
    }


</script>

